package com.pencilisland.pay.api.bean.mp.app;

import java.io.Serializable;
import java.util.List;
import java.util.ArrayList;


import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;


/**
 * 查询当前用户的收货地址.服务端响应
 * 
 * messageId[queryUserAddress] 
 *
 * @author breeze
 * 
 */
@JsonInclude(Include.NON_NULL)
public class QueryUserAddressRES extends MessageResponse implements Serializable{
	
	private static final long serialVersionUID = 1L;

	@JsonInclude(Include.NON_NULL)
	public static class ElementAddressList implements Serializable{
		private static final long serialVersionUID = 1L;
		private String userName;
		private String postalCode;
		private String provinceName;
		private String cityName;
		private String countyName;
		private String detailInfo;
		private String nationalCode;
		private String telNumber;
		private String id;
		private String md5;

		/**
		 * @return 收货人姓名
		 */
		public String getUserName() {
			return userName;
		}

		public void setUserName(String userName) {
			this.userName = userName;
		}

		/**
		 * @return 邮编
		 */
		public String getPostalCode() {
			return postalCode;
		}

		public void setPostalCode(String postalCode) {
			this.postalCode = postalCode;
		}

		/**
		 * @return 国标收货地址第一级地址
		 */
		public String getProvinceName() {
			return provinceName;
		}

		public void setProvinceName(String provinceName) {
			this.provinceName = provinceName;
		}

		/**
		 * @return 国标收货地址第二级地址
		 */
		public String getCityName() {
			return cityName;
		}

		public void setCityName(String cityName) {
			this.cityName = cityName;
		}

		/**
		 * @return 国标收货地址第三级地址
		 */
		public String getCountyName() {
			return countyName;
		}

		public void setCountyName(String countyName) {
			this.countyName = countyName;
		}

		/**
		 * @return 详细收货地址信息
		 */
		public String getDetailInfo() {
			return detailInfo;
		}

		public void setDetailInfo(String detailInfo) {
			this.detailInfo = detailInfo;
		}

		/**
		 * @return 收货地址国家码
		 */
		public String getNationalCode() {
			return nationalCode;
		}

		public void setNationalCode(String nationalCode) {
			this.nationalCode = nationalCode;
		}

		/**
		 * @return 收货人手机号码
		 */
		public String getTelNumber() {
			return telNumber;
		}

		public void setTelNumber(String telNumber) {
			this.telNumber = telNumber;
		}

		/**
		 * @return 记录ID
		 */
		public String getId() {
			return id;
		}

		public void setId(String id) {
			this.id = id;
		}

		/**
		 * @return 记录md5值
		 */
		public String getMd5() {
			return md5;
		}

		public void setMd5(String md5) {
			this.md5 = md5;
		}
	
	/**
	*设置挡板数据
	*/
	public void baffle(){
		this.userName = "";
		this.postalCode = "";
		this.provinceName = "";
		this.cityName = "";
		this.countyName = "";
		this.detailInfo = "";
		this.nationalCode = "";
		this.telNumber = "";
		this.id = "";
		this.md5 = "";
	}
	}

	private List<ElementAddressList> addressList;

	public QueryUserAddressRES(){
		super();
	}

	public QueryUserAddressRES(Boolean success_,Integer errorCode_, String message_) {
		super(success_,errorCode_,message_);
	}


	/**
	 * @return 
	 */
	public List<ElementAddressList> getAddressList() {
		return addressList;
	}

	public void setAddressList(List<ElementAddressList> addressList) {
		this.addressList = addressList;
	}
	
	/**
	*设置挡板数据
	*/
	public void baffle(){
		this.addressList = new ArrayList<ElementAddressList>();
		ElementAddressList elementAddressList = new ElementAddressList();
		elementAddressList.baffle();
		this.addressList.add(elementAddressList);
	}

}